﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Values;

namespace Yookeii.Blog.Domain.Chat;

// 密码值对象
public class EncryPasswordValueObject : ValueObject
{
    /// <summary>
    /// 密码
    /// </summary>
    public string Password { get;  set; }
    /// <summary>
    /// 加密盐值
    /// </summary>
    public string Salt { get;  set; } = string.Empty;

    public EncryPasswordValueObject() { }
    public EncryPasswordValueObject(string password) { this.Password = password; }
    protected override IEnumerable<object> GetAtomicValues()
    {
        yield return Password;
        yield return Salt;
    }

}
